using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace B.S.BataBase.Domain.Hosp
{
    /// <summary>
    /// 科室实体
    /// </summary>
    [Table("Department")]
    public class Department : BaseEntity
    {
        /// <summary>
        /// 科室名称
        /// </summary>
        [Required]
        [StringLength(100)]
        public string DepartmentName { get; set; } = string.Empty;

        /// <summary>
        /// 科室级别（一级、二级）
        /// </summary>
        [Required]
        [StringLength(20)]
        public string DepartmentLevel { get; set; } = string.Empty;

        /// <summary>
        /// 父级科室ID（二级科室关联一级科室）
        /// </summary>
        public long ParentDepartmentId { get; set; }
        /// <summary>
        /// 状态（0-禁用，1-启用）
        /// </summary>
        public bool Status { get; set; }

        /// <summary>
        /// 备注内容
        /// </summary>
        [StringLength(200)]
        public string Remarks { get; set; } = string.Empty;
        /// <summary>
        /// 上传人
        /// </summary>
        [StringLength(50)]
        public string Uploader { get; set; } = string.Empty;
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }= DateTime.Now;
    }
} 